<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="en" class="no-js" >
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>仓库管理系统</title>

    <script src="../../../static/vanilla-cream-css/js/libs/jquery-1.10.0.js" th:src = "@{/vanilla-cream-css/js/libs/jquery-1.10.0.js}"></script>
    <script src="../../../static/layui/layui.js" th:src="@{/layui/layui.js}"></script>
    <script src="../../../static/vanilla-cream-css/js/libs/bootstrap.min.js" th:src="@{/vanilla-cream-css/js/libs/bootstrap.min.js}"></script>
    <link href="../../../static/vanilla-cream-css/css/bootstrap.css" rel="stylesheet" th:href="@{/vanilla-cream-css/css/bootstrap.css}"/>
    <link href="../../../static/layui/css/layui.css" rel="stylesheet" th:href="@{/layui/css/layui.css}"/>

    <!--
    <link rel="stylesheet" href="../../static/vanilla-cream-css/css/bootstrap.css" th:href="@{/vanilla-cream-css/css/bootstrap.css}" />
    <link rel="stylesheet" href="../../static/vanilla-cream-css/style.css" th:href="@{/vanilla-cream-css/style.css}"  />
    <script src="../../static/vanilla-cream-css/js/jquery.customInput.js"  th:src="@{/vanilla-cream-css/js/jquery.customInput.js}"></script>
    <script type="text/javascript" src="../../static/vanilla-cream-css/js/custom.js" th:src="@{/vanilla-cream-css/js/custom.js}"></script>

    <script src="../../static/vanilla-cream-css/js/general.js" th:src="@{/vanilla-cream-css/js/general.js}"></script>
    -->

</head>
<script th:inline="javascript">
    /*<![CDATA[*/

    function disappear() {

        if([[${idt}]] == null){
            document.getElementById("idt").style.display = 'none';
        }


        /*]]>*/
    }
</script>
<body class="layui-layout-body" onload="disappear()">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">查询统计</div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="/product/index">产品管理</a></li>
            <li class="layui-nav-item"><a href="">库存管理</a></li>
            <li class="layui-nav-item"><a href="/query/">查询统计</a></li>
            <li class="layui-nav-item"><a href="/admin/user/proPage">个人信息</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item"><a href="/query/data">统计数据</a></li>
                <li class="layui-nav-item"><a href="/query/detail/exist">查询库存</a></li>
                <li class="layui-nav-item"><a href="/query/detail/in">查询生产</a></li>
                <li class="layui-nav-item"><a href="/query/detail/out">查询销售</a></li>
                <li class="layui-nav-item"><a href="/query/detail/disposal">查询销毁</a></li>
                <li class="layui-nav-item"><a href="/query/detail/outDate">查询过期</a></li>
            </ul>
        </div>
    </div>
    <div class="layui-body">

        <div style="padding: 15px;">

            <br>
            <br>
            <br>
            <div id="id">
                <table class="layui-table" style="width: 600px;margin: auto" id="table">
                    <thead>
                    <tr>
                        <td>ID</td>
                        <td>生产日期</td>
                        <td>销售日期</td>
                        <td>数量</td>
                        <td>记录人</td>
                    </tr>
                    </thead>
                    <tr th:each="idL : ${idList}" class="text-info">
                        <td th:text="${idL.getId()}"></td>
                        <td th:text="${idL.getProduceDate()}"></td>
                        <td th:text="${idL.getSaleDate()}"></td>
                        <td th:text="${idL.getNum()}"></td>
                        <td th:text="${idL.getAdminId()}"></td>

                    </tr>

                </table>
                <br/><br/>

            </div>

            <br>
            <br>
            <br>
            <div id="idt">
                <table class="layui-table" style="width: 600px;margin: auto" id="table1">
                    <thead>
                    <tr>
                        <td>ID</td>
                        <td>生产日期</td>
                        <td>销售日期</td>
                        <td>数量</td>
                        <td>记录人</td>
                    </tr>
                    </thead>
                    <tr th:each="idL : ${typeList}" class="text-info">
                        <td th:text="${idL.getId()}"></td>
                        <td th:text="${idL.getProduceDate()}"></td>
                        <td th:text="${idL.getSaleDate()}"></td>
                        <td th:text="${idL.getNum()}"></td>
                        <td th:text="${idL.getAdminId()}"></td>

                    </tr>

                </table>
                <br/><br/>

            </div>
        </div>


    </div>

</div>


</body>
</html>